package com.wkck;

import cn.dustlight.captcha.annotations.EnableCaptcha;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import javax.annotation.PostConstruct;

import static com.wkck.constant.ApplicationLogConstant.Application_Log;

@Slf4j
@SpringBootApplication
@MapperScan({"com.wkck.mapper"})
@EnableCaching
@EnableCaptcha
@EnableTransactionManagement
public class SchoolJobManagerClientApplication {

    public static void main(String[] args) {
        SpringApplication.run(SchoolJobManagerClientApplication.class, args);
        log.info(Application_Log);
    }

    /**
     * 没用
     */
    @PostConstruct
    public void setProperties() {
        System.setProperty("druid.mysql.usePingMethod","false");
    }

}

